{
    "targets": [
        {
            "target_name": "global-recorder",
            "conditions": [
                [
                    'OS=="win"',
                    {
                        "sources": ["src-c\\win.cpp"],
                        "msvs_settings": {
                            "VCCLCompilerTool": {
                                "AdditionalOptions": ["/W3", "/Qspectre", "/guard:cf"]
                            },
                            "VCLinkerTool": {"AdditionalOptions": ["/guard:cf"]},
                        },
                        "include_dirs": [
                            "<!@(node -p \"require('node-addon-api').include\")"
                        ],
                        "defines": [
                            "NAPI_DISABLE_CPP_EXCEPTIONS",
                            "NODE_ADDON_API_DISABLE_DEPRECATED",
                        ],
                    },
                ]
            ],
        }
    ]
}
